FROM alpine:latest

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk add --no-cache tzdata
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir -p /opt/service/bin
WORKDIR /opt/service

COPY /cmd/cmd /opt/service/bin/

ENTRYPOINT ["/opt/service/bin/cmd"]